Search


📜 [專欄新文章] Solidity Weekly #5
✍️ mingde...

  • Share this:


📜 [專欄新文章] Solidity Weekly #5
✍️ mingderwang
📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium

Solidity Weekly is back!

很抱歉 Solidity Weekly #4 在去年 1 月, 無預警的停刊. 事隔 1 年半, 我可以再繼續為大家服務了. 主要還是介紹最近 Solidity 的小技巧, 或是容易搞混的地方.

在 solc 0.4.17 版之後, constant modifier 改成用更精準的 view 或 pure 來代替

例如下面的 returnTrue() function, 如果妳還用 constant, Remix 會給你警告.

function pureReturn() public pure returns () { return true;}

*適用版本 Solidity ^0.4.17 或以上

Solidity Weekly #5 was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.

👏 歡迎轉載分享鼓掌


Tags:

About author
not provided
We have regular meeting twice per month on discussing blockchain technology, smart contracts and DApps development! We would love to have you join us!
View all posts